﻿
<template>
  <div class="ad_scroll"> 
    <div id="wrapper" v-bins:style="{width:wrapper_width+'px'}">
      <div id="scroller">
        <ul class="warpp_list">
          <li v-for="scroll_list in scroll_list" class="list_call" v-bind:class="{act:scroll_list.flag}">Cell 1</li>
        </ul>
      </div>
    </div>
  </div>
   
</template>

<script>
  import '../../static/css/mint-ui/style.css'
  import MintUI from 'mint-ui'
  import {mapState, mapMutations,mapActions,mapGetters} from 'vuex';
  import { Toast, Indicator, MessageBox, Swipe, SwipeItem  } from 'mint-ui';
  import Vue from "vue";
  import filter from "../filter/filter.js"
  import IScroll from "../../static/js/iscroll.js";

  export default {
    name: 'ad_scroll',
    data() {
      return {
        img_list: [0, 0, 0, 0],
        scroll_list: [{ flag: false }, { flag: true }, { flag: false }, { flag: false }, { flag: false }],
        wrapper_width:500
      }
    },
    props: [],
    beforeCreate: function () {
          
    },
    watch: {
   
    },
    methods: {
    
    },
    components: {

    },
    mounted: function () {

      this.$nextTick(() => {
        let myScroll = new IScroll('#wrapper', { scrollX: true, scrollY: false, mouseWheel: true });

      })
    },
    components: {

    }
  }
</script>
<style scoped>
  .warpp_list{
    padding-top:4.4vw;
    padding-bottom:3.2vw;
  } 
  .list_call {
    margin-right: 1.2vw;
  } 
  .ad_scroll {
    width: 100%;
  } 
  #wrapper {
    position: absolute;
    width: 500px
  }
  * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  html {
    -ms-touch-action: none;
  }

  body, ul, li {
    padding: 0;
    margin: 0;
    border: 0;
  }

  #wrapper {
    position: absolute;
    z-index: 1;
    top: 45px;
    bottom: 48px;
    left: 0;
    width: 100%;
    overflow: hidden;
  }

  #scroller {
    position: absolute;
    z-index: 1;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    width: 5000px;
    height:40vw;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -o-text-size-adjust: none;
    text-size-adjust: none;
  }

  #scroller ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
    padding-top: 4.4vw;
    padding-bottom: 3.2vw;
  }
  #scroller .act{
    height:43.6vw;
    width:32.8vw;
  }
  #scroller li {
    height: 40vw;
    display: block;
    float: left;
    width: 32vw;
    border-right: 1px solid #ccc;
    background-color: #fafafa;
    font-size: 14px;
  }
</style>
